package com.coderman.common.starter.nacos.paperwork.service;

import com.alibaba.nacos.api.exception.NacosException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Description:
 * date: 2020/10/12 3:31 下午
 *
 * @author fanchunshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
@Service
public class NacosPaperTextServiceImpl implements PaperTextService{

    @Autowired
    private ConfigDataHelperService configDataHelperService;

    @Override
    public String getMsgFromTemplate(String dataId, String groupId, Map<String, String> varMap) {
        return configDataHelperService.getNewConfig(dataId, groupId, varMap);
    }
}
